package com.qiqidream.admin.system.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.qiqidream.admin.system.mapper.RoleMapper;
import com.qiqidream.admin.system.model.entity.Role;
import com.qiqidream.admin.system.service.RoleService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author QiQiDream
 * @since 2019/11/18 10:53
 */
@Service
public class RoleServiceImpl extends ServiceImpl<RoleMapper, Role> implements RoleService {

    @Override
    public List<String> getRolesByMenuId(Long menuId) {
        return baseMapper.getRolesByMenuId(menuId.toString());
    }
}
